import 'package:flutter/material.dart';

class search extends StatefulWidget {
  search({Key key}) : super(key: key);

  @override
  State<search> createState() => _searchState();
}

class _searchState extends State<search> {
  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.spaceBetween,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        Container(
          child: Row(
            children: [
              Icon(
                Icons.search,
                color: Color(0xffc8c8c8),
              ),
              Container(
                padding: EdgeInsets.only(left: 10),
                child: Text(
                  '哪里都是你',
                  style: TextStyle(color: Color(0xffc8c8c8), fontSize: 15),
                ),
              )
            ],
          ),
          margin: EdgeInsets.only(top: 10, bottom: 20),
          height: 40,
          padding: EdgeInsets.symmetric(horizontal: 10),
          width: 0.82 * MediaQuery.of(context).size.width,
          decoration: BoxDecoration(
              color: Colors.white, borderRadius: BorderRadius.circular(20)),
        ),
        Container(
          height: 40,
          alignment: Alignment.center,
          child: Icon(
            Icons.music_note,
            size: 30,
          ),
        )
      ],
    );
  }
}
